<head>
<meta http-equiv='content-type' content='text/html; charset=utf8' />
<title>jsGoo tests</title><link rel='stylesheet' href='main.css' type='text/css' />
<script type='text/javascript' src='jsgoo.js'></script>
<script type='text/javascript'>

function test() { jsg.$into('main', _test.go([
        { n: 'pprint int', f: function(){ return _d.pprint(1); }, r: '1' },
        { n: 'pprint float', f: function(){ return _d.pprint(1.32); }, r: '1.32' },
        { n: 'pprint string', f: function(){ return _d.pprint('string'); }, r: '"string"' },
        { n: 'pprint arr', f: function(){ return _d.pprint([ 123, 'OK' ]); }, r: '[ 123, "OK" ]' },
        { n: 'pprint obj', f: function(){ return _d.pprint({ name: 'Bine' }); }, r: '{ "name": "Bine" }' },
        { n: 'pprint nestarr', f: function(){ return _d.pprint(['ok',[1,2,3],1000]); }, r: '[ "ok", [ 1, 2, 3 ], 1000 ]' },
        {   n: 'pprint nestobj', 
            f: function(){ return _d.pprint({a: 'ok', b: [1,2, { r: 22, f: { e: 99 } } ], c: { t: "ime" } }); }, 
            r: '{ "a": "ok", "b": [ 1, 2, { "r": 22, "f": { "e": 99 } } ], "c": { "t": "ime" } }' }
        ])); }
</script>
<body>
<div><a href="index.html">index</a> <a href="#" onclick="test(); return false;">test</a></div>
<div id="main"></div>
</body>
</html>